import MinHeap from "./minHeap";
import { defaultCompareFun, type CompareFun } from "./abstractHeap";

class MaxHeap<T> extends MinHeap<T> {
  constructor(
    compare: CompareFun<T> = (a: T, b: T) => defaultCompareFun(b, a)
  ) {
    super(compare);
  }
}
export default MaxHeap;
